package com.handc.springcloud.service;

import com.handc.springcloud.dao.StudentDao;
import com.handc.springcloud.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    public Student queryById(Long id) {
        return studentDao.queryById(id);
    }

    public List<Student> queryAll() {
        return studentDao.queryAll();
    }

    public boolean addStudent(Student student) {
        return studentDao.addStudent(student);
    }
}
